﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.KeepAlivedClient
{
    /// <summary>
    /// 真实服务器配置
    /// </summary>
    public class RealServer
    {
        /// <summary>
        /// 真实服务器IP地址
        /// </summary>
        public string IpAddress { get; set; }

        /// <summary>
        /// 真实服务器端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 权重值
        /// </summary>
        public int Weight { get; set; } = 1;

        /// <summary>
        /// 健康检查配置
        /// </summary>
        public HealthCheck HealthCheck { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; } = true;
    }
}
